/** Global style **/
html, body {
    position: fixed;
}

body {
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/** Common class **/
.no-right-border {
    border-right: 0;
}

.no-bottom-border {
    border-bottom: 0;
}

.work-break-all {
    word-break: break-all;
}

.full-line {
    width: 100%;
}

.smaller {
    font-size: var(--ebk-smaller-font-size);
}

.readonly {
    pointer-events: none !important;
}

.skeleton-text {
    pointer-events: none !important;
}

.segmented.readonly .button:not(.button-active) > span,
.list.readonly .item-content .item-title.item-label,
.list.readonly .item-content .item-title > .item-header {
    opacity: 0.55 !important;
}

/** Replacing the default style of framework7 **/
:root {
    --f7-popup-push-offset: 5px;
    --f7-color-gray: #8e8e93;
    --f7-color-gray-rgb: 142, 142, 147;
    --f7-color-gray-shade: #79797f;
    --f7-color-gray-tint: #a3a3a7;
}

.color-gray {
    --f7-theme-color: var(--f7-color-gray);
    --f7-theme-color-rgb: var(--f7-color-gray-rgb);
    --f7-theme-color-shade: var(--f7-color-gray-shade);
    --f7-theme-color-tint: var(--f7-color-gray-tint);
}

.ios .dark, .ios.dark {
    --f7-list-item-header-text-color: inherit !important;
}

i.icon.la, i.icon.las, i.icon.lab {
    font-size: var(--ebk-icon-font-size);
}

.f7-icons, .framework7-icons {
    font-size: var(--ebk-icon-font-size);
}

.ios .searchbar-icon:after {
    font-size: var(--ebk-searchbar-icon-font-size);
}

.ios .searchbar-disable-button {
    font-size: var(--ebk-searchbar-disable-button-font-size);
}

.chip.chip-placeholder {
    border: 0;
}

/** custom class **/
:root {
    --default-icon-color: #000;
}

:root.dark {
    --default-icon-color: #fff;
}

.pin-codes-input {
    --ebk-pin-code-border-color: var(--f7-input-outline-border-color);
    --ebk-pin-code-focued-color: var(--f7-input-outline-invalid-border-color, var(--f7-theme-color));
    --ebk-pin-code-border-radius: var(--f7-input-outline-border-radius);
    --ebk-pin-code-input-height: 46px;
}

.ebk-small-amount {
    --f7-list-item-title-font-size: var(--ebk-amount-small-font-size) !important;
}

.ebk-normal-amount {
    --f7-list-item-title-font-size: var(--ebk-amount-normal-font-size) !important;
}

.ebk-large-amount {
    --f7-list-item-title-font-size: var(--ebk-amount-large-font-size) !important;
}

.ebk-list-item-error-info div.item-footer {
    color: var(--f7-input-error-text-color)
}

.ebk-sheet-title {
    font-size: var(--ebk-sheet-title-font-size);
}

.ebk-hide-icon {
    font-size: var(--ebk-hide-icon-font-size);
}

.login-page-logo {
    width: 80px;
    height: 80px;
}

.login-page-tile {
    font-size: var(--ebk-login-page-title-font-size);
}

.lang-popover-menu .popover-inner {
    max-height: 300px;
    overflow-y: auto;
}

.login-page-fixed-bottom {
    background-color: inherit !important;
}

.login-page-fixed-bottom > .toolbar-inner {
    display: inline !important;
    text-align: center;
    font-size: var(--f7-font-size);
}

.login-page-powered-by > span {
    color: var(--f7-block-footer-text-color);
}

.login-page-powered-by > a.link {
    display: inline !important;
    color: var(--f7-theme-color);
    font-size: var(--f7-block-footer-font-size);
    padding: 0 6px;
}

@media (max-height: 629px) {
    .login-screen-content {
        --f7-toolbar-height: 0;
    }

    .login-page-fixed-bottom {
        display: none;
    }
}

@media (min-height: 630px) {
    .login-page-bottom {
        display: none;
    }
}

/** Replacing the default style of @vuepic/vue-datepicker **/
.dp__theme_light {
    --dp-primary-color: #c67e48;
}

.dp__theme_dark {
    --dp-primary-color: #c67e48;
}

/** Common class for replacing the default style of framework7 **/
.navbar .navbar-compact-icons.right a + a {
    margin-left: 0;
}

.toolbar-item-auto-size .toolbar-inner {
    padding-left: 16px;
    padding-right: 16px;
}

.toolbar-item-auto-size .toolbar-inner > .link {
    width: auto;
}

.tabbar-primary-link,
.tabbar-item-changed {
    color: var(--f7-theme-color);
}

.tabbar-text-with-ellipsis > span {
    display: block;
    width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    word-break: break-all;
    white-space: nowrap;
}

.block-title .accordion-item-toggle .icon {
    color: var(--f7-list-chevron-icon-color);
    font-size: var(--f7-list-chevron-icon-font-size);
    font-weight: bolder;
}

.list-item-media-valign-middle .item-media {
    align-self: normal !important;
}

.list-item-no-item-after .item-after {
    display: none;
}

.list-item-with-header-and-title .item-content .item-header {
    margin-bottom: 11px;
}

.list-item-with-header-and-title.list-item-title-hide-overflow .item-content .list-item-custom-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

.list .item-content .input.list-title-input {
    margin-top: calc(-1 * var(--f7-list-item-padding-vertical));
    margin-bottom: calc(-1 * var(--f7-list-item-padding-vertical));
}

.list .item-content .list-item-valign-middle {
    align-self: center;
}

.list .item-content .list-item-showing {
    color: rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: bold;
}

.dark .list .item-content .list-item-showing {
    color: rgba(255, 255, 255, 0.2);
}

.accordion-item.list-item-checked > .item-link > .item-content .item-title {
    font-weight: bold;
}

.list.list-dividers li.has-child-list-item .item-inner:after {
    content: '';
    position: absolute;
    background-color: var(--f7-list-item-border-color);
    display: block !important;
    z-index: 15;
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    transform-origin: 50% 100%;
    transform: scaleY(calc(1 / var(--f7-device-pixel-ratio)));
}

.list.list-dividers li.list-group-title:first-child,
.list.list-dividers li.list-group-title.actual-first-child {
    border-radius: var(--f7-list-inset-border-radius) var(--f7-list-inset-border-radius) 0 0;
}

.list.list-dividers li.list-group-title:first-child:before,
.list.list-dividers li.list-group-title.actual-first-child:before {
    background-color: transparent;
}

.list.list-dividers li:last-child > .swipeout-content > .item-content > .item-inner:after,
.list.list-dividers li:last-child > .swipeout-content > .item-link > .item-content > .item-inner:after,
.list.list-dividers li.actual-last-child > .swipeout-content > .item-content > .item-inner:after,
.list.list-dividers li.actual-last-child > .swipeout-content > .item-link > .item-content > .item-inner:after {
    background-color: transparent;
}

.list.inset li.list-group-title:first-child > a.button {
    border-radius: var(--f7-button-border-radius);
}

.list.inset li.swipeout.actual-first-child,
.list.inset li.actual-first-child > a {
    border-radius: var(--f7-list-inset-border-radius) var(--f7-list-inset-border-radius) 0 0;
}

.list.inset li.swipeout.actual-last-child,
.list.inset li.actual-last-child > a {
    border-radius: 0 0 var(--f7-list-inset-border-radius) var(--f7-list-inset-border-radius);
}

.list.inset li.swipeout.actual-first-child.actual-last-child,
.list.inset li.actual-first-child.actual-last-child > a {
    border-radius: var(--f7-list-inset-border-radius);
}

.list.inset.list-has-group-title li.swipeout.actual-first-child,
.list.inset.list-has-group-title li.actual-first-child > a {
    border-radius: 0;
}

.list.inset.list-has-group-title li.swipeout:first-child:last-child,
.list.inset.list-has-group-title li:first-child:last-child > a,
.list.inset.list-has-group-title li.swipeout.actual-first-child.actual-last-child,
.list.inset.list-has-group-title li.actual-first-child.actual-last-child > a {
    border-radius: 0 0 var(--f7-list-inset-border-radius) var(--f7-list-inset-border-radius);
}

.accordion-item .block-title+.accordion-item-content .list.inset li.swipeout:first-child:not(:last-child),
.accordion-item .block-title+.accordion-item-content .list.inset li:first-child:not(:last-child) > a {
    border-radius: 0;
}

.accordion-item .block-title+.accordion-item-content .list.inset li.swipeout:first-child:last-child,
.accordion-item .block-title+.accordion-item-content .list.inset li:first-child:last-child > a,
.accordion-item .block-title+.accordion-item-content .list.inset li.swipeout.actual-last-child:first-child,
.accordion-item .block-title+.accordion-item-content .list.inset li.actual-last-child:first-child > a {
    border-radius: 0 0 var(--f7-list-inset-border-radius) var(--f7-list-inset-border-radius);
}

.list .item-content .list-item-checked-icon {
    font-size: var(--ebk-list-item-checked-icon-font-size);
    color: var(--f7-radio-active-color, var(--f7-theme-color));
    margin-right: calc(var(--f7-list-item-media-margin) + var(--f7-checkbox-extra-margin));
}

.list .item-content > .item-inner > .item-after .list-item-checked-icon {
    margin-right: 0;
}

.list li.no-margin .item-content.item-input {
    margin: 0;
}

.skeleton-text .list-item-toggle .item-after {
    height: var(--f7-toggle-height);
}

.skeleton-text .list-item-toggle .item-after > span {
    line-height: var(--f7-toggle-height);
    font-size: var(--f7-toggle-height);
}

.no-sortable > .sortable-handler {
    display: none;
}

.card-header-content {
    opacity: 0.6;
}

.icon-after-text {
    margin-left: 6px;
}

.icon-after-text i.icon {
    font-size: var(--ebk-icon-after-text-font-size);
}

.badge.right-bottom-icon {
    margin-left: -12px;
    margin-top: 14px;
    width: 16px;
    height: 16px;
}

.badge.right-bottom-icon > .icon {
    font-size: var(--ebk-right-bottom-icon-font-size);
    width: var(--ebk-right-bottom-icon-font-size);
    height: var(--ebk-right-bottom-icon-font-size);
}

/** Swipe handler **/
.swipe-handler {
    height: 26px;
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    cursor: pointer;
}

.swipe-handler:after {
    content: "";
    width: 36px;
    height: 6px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -18px;
    margin-top: -8px;
    border-radius: 3px;
    background: #666
}

/** list-item-with-multi-item for framework7 **/
.list-item-with-multi-item .item-content,
.list-item-with-multi-item .item-inner {
    padding: 0;
}

.list-item-with-multi-item .item-inner > div {
    width: 100%;
}

.list-item-with-multi-item > .item-content > .item-inner:after {
    background-color: transparent;
}

.list-item-with-multi-item .list-item-subitem:first-child .item-content {
    padding-left: calc(var(--f7-list-item-padding-horizontal) + var(--f7-safe-area-left));
}

.list-item-with-multi-item .list-item-subitem .item-inner {
    display: block;
    width: 100%;
    padding-left: calc(var(--f7-list-item-padding-horizontal) + var(--f7-safe-area-left));
    padding-top: var(--f7-list-item-padding-vertical);
    padding-bottom: var(--f7-list-item-padding-vertical);
}

.list-item-with-multi-item .list-item-subitem:first-child .item-inner {
    padding-left: 0;
}

/** Combination list for framework7 **/
.combination-list-wrapper {
    margin: 0;
    padding: 0;
}

.combination-list-wrapper .block-title {
    margin-top: 0;
    margin-bottom: 0;
}

.combination-list-wrapper .list.combination-list-header {
    margin: 0;
}

.combination-list-wrapper .list.combination-list-header .item-title {
    width: 100%;
    display: flex;
}

.combination-list-wrapper .list.combination-list-header > ul {
    background-color: var(--f7-list-group-title-bg-color);
}

.combination-list-wrapper .list.combination-list-header.combination-list-opened > ul {
    border-radius: var(--f7-list-inset-border-radius) var(--f7-list-inset-border-radius) 0 0;
}

.combination-list-wrapper .list.combination-list-header.combination-list-closed > ul {
    border-radius: var(--f7-list-inset-border-radius);
}

.combination-list-wrapper .list.combination-list-header .combination-list-chevron-icon {
    margin-left: auto;
}

.combination-list-wrapper .list.combination-list-content.inset > ul {
    border-radius: 0 0 var(--f7-list-inset-border-radius) var(--f7-list-inset-border-radius);
}

/** Nested List item for framework7 **/
.nested-list-item .item-title {
    width: 100%;
}

.nested-list-item.has-child-list-item > .swipeout-content > .item-content > .item-inner,
.nested-list-item.has-child-list-item > .swipeout-content > .item-link > .item-content > .item-inner {
    padding-top: 0;
    padding-bottom: 0;
}

.nested-list-item.has-child-list-item .nested-list-item-child .item-inner {
    padding-bottom: var(--f7-list-item-padding-vertical);
}

.nested-list-item.has-child-list-item .item-link.active-state {
    background-color: transparent;
}

.nested-list-item.has-child-list-item .item-link .item-inner {
    padding-right: 0;
}

.nested-list-item.has-child-list-item .item-link .item-inner:before {
    color: transparent;
}

.nested-list-item.has-child-list-item .item-link.active-state .item-inner .nested-list-item-child .item-link.active-state {
    background-color: var(--f7-list-link-pressed-bg-color);
}

.nested-list-item.has-child-list-item .item-link .item-inner .nested-list-item-child .item-link .item-inner {
    padding-right: calc(var(--f7-list-chevron-icon-area) + var(--f7-list-item-padding-horizontal) + var(--f7-safe-area-right));
}

.nested-list-item.has-child-list-item .item-link .item-inner .nested-list-item-child .item-link .item-inner:before {
    color: var(--f7-list-chevron-icon-color);
}

.nested-list-item .nested-list-item-title {
    align-self: center;
    margin-right: var(--f7-list-item-media-margin);
    overflow: hidden;
    text-overflow: ellipsis;
}

.nested-list-item.has-child-list-item .nested-list-item-title {
    margin-left: var(--f7-list-item-media-margin);
}

.nested-list-item.has-child-list-item > .swipeout-content > .item-content > .item-inner:after,
.nested-list-item.has-child-list-item > .swipeout-content > .item-link > .item-content > .item-inner:after {
    background-color: transparent;
}

.list.inset li.nested-list-item.has-child-list-item .item-inner li.nested-list-item-child,
.list.inset li.nested-list-item.has-child-list-item .item-inner li.nested-list-item-child > a {
    border-radius: 0;
}

.list.list-dividers li.nested-list-item.has-child-list-item .item-inner .nested-list-item-child .item-inner:after {
    content: '';
    position: absolute;
    background-color: var(--f7-list-item-border-color);
    display: block !important;
    z-index: 15;
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    transform-origin: 50% 100%;
    transform: scaleY(calc(1 / var(--f7-device-pixel-ratio)));
}

.list.list-dividers li.nested-list-item.has-child-list-item:last-child .item-inner .nested-list-item-child:last-child .item-inner:after,
.list.list-dividers li.nested-list-item.has-child-list-item.actual-last-child .item-inner .nested-list-item-child.actual-last-child .item-inner:after {
    background-color: transparent;
}

.sortable-enabled .nested-list-item .nested-list-item-child .item-inner {
    padding-right: var(--f7-safe-area-right) !important;
}

/** Fix @vuepic/vue-datepicker style issue **/
.dp__main.dp__flex_display {
    flex-direction: column
}

.dp__main .dp__preset_range {
    white-space: inherit;
}

.dp__main .dp__menu_inner {
    padding-top: 0;
    padding-bottom: 0;
}

.dp__main .dp__menu_inner .dp__month_year_row > button {
    width: inherit;
}

.dp__main .dp__menu_inner .dp__month_year_row > button.dp__button {
    width: 100%;
}

.dp__main .dp__menu_inner .dp__month_year_row .dp__month_year_wrap > button {
    line-height: inherit;
}

.dp__main .dp__calendar .dp__calendar_item {
    display: flex;
    justify-content: center;
    flex: 1;
}

.dp__main .dp__calendar .dp__calendar_item > .dp__cell_inner {
    width: 100%;
}
